public class Ex4_26{
	public static void main(String[] args){
		final int i = 100000;
		double t = 1;
		double sum = 1;
		for (int j = 1; j <= i; j++){
			t *= j;
			sum += 1 / t;
		}
		System.out.printf("%.10f\n", sum);
		System.out.printf("%.10f\n", Math.E);
	}
}